def matreshka(deep=5):
    """ Function print matreshka"""

    if deep == 1:
        print('matreshka ', end='')
        return

    print('[ ', end='')
    matreshka(deep-1)
    print('] ', end='')

print(matreshka())
